<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>跳转提示</title>
<style type="text/css">
body{ background: #fff; font-family: '微软雅黑'; color: #333; font-size: 14px; }
body, p {margin:0; padding:0;}
div, p {word-break:break-all;}
.wrapper{width:400px; margin:0 auto;}
.success {margin-top:20%; padding:6px 10px 6px 10px; min-height:90px; line-height:22px; color:#468847; background-color:#DFF0D8; border:1px solid #d6e9c6;}
.error {margin-top:20%; padding:6px 10px 6px 10px; min-height:90px; line-height:22px; color:#b94a48; background-color:#F2DEDE; border:1px solid #eed3d7; }
.detail {font-size:12px;}
.jump a {color:#333;}
</style>
</head>
<body>
	<div class="wrapper">
	<?php if(isset($message)): ?><div class="success"><?php echo($message); ?></div>
	<?php else: ?>
		<div class="error"><?php echo($error); ?></div><?php endif; ?>
	
		<div class="detail"></div>
		<div class="jump">
		页面自动 <a id="href" href="<?php echo($jumpUrl); ?>">跳转</a>
		等待时间：<b id="wait"><?php echo($waitSecond); ?></b>
		</div>
	</div>

<script type="text/javascript">
(function(){
var wait = document.getElementById('wait'),href = document.getElementById('href').href;
var interval = setInterval(function(){
	var time = --wait.innerHTML;
	if(time <= 0) {
		location.href = href;
		clearInterval(interval);
	};
}, 1000);
})();
</script>
</body>
</html>